package com.ruoyi.baselibrary.infobasecategory.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value = 3)
public class BaseCategoryApplicationRunner implements ApplicationRunner {

    @Autowired
    private IInfoBaseCategoryService baseCategoryService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        baseCategoryService.restBaseCategoryCache();
    }
}
